package com.j180.web_two.controller;

import com.j180.web_two.bean.StudentBean;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StudentController {

    @GetMapping("/showStudent")
    public StudentBean getStudent(){

        System.out.println("getStudent==>>");

        StudentBean studentBean = new StudentBean();
        studentBean.setId(10);
        studentBean.setName("菊花");
        studentBean.setGender("男");

        return studentBean;

    }
}
